<?php
	include("initialize.php");
?>
<html>
<head>
	<title>GradeGrid - Class Operations</title>
	<?php include("header.php"); ?>
	<script type="text/javascript" language="javascript">
		function showExport(){
			document.getElementById("iframearea").style.display = "block"
		}
		
		function hideExport(){
			document.getElementById("iframearea").style.display = "none"
		}
	</script>
	<script type="text/javascript" src="../boilerplate/js/dragiframe.js"></script>
</head>
<body onLoad="writeCopyright()">
	<div class="main">
		<?php include("boilerplate.php"); ?>
		<?php include("loginnaviagation.php"); ?>
		
		<div style="float: left;">
			<p>View student record for class:
			<select>
				<option>Lightsaber Training</option>
				<option>Wookie Psychology</option>
				<option>Diplomatic Relations</option>
				<option>Advanced Force Manipulation</option>
			</select></p>
			<table class="schedule pMirror">
			<tr>
				<td class="schedule">Student Name:</td>
				<td class="schedule">Technical Proficiency (10)</td>
				<td class="schedule">Combat Proficiency (50)</td>
				<td class="schedule">Total</td>
			</tr>
			<tr>
				<td class="schedule">Alpert, Ricardus</td>
				<td class="schedule" id="bar"><input type="text" class="noborder" value="8" /></td>
				<td class="schedule" id="bar"><input type="text" class="noborder" value="40" /></td>
				<td class="schedule"></td>
			</tr>
			<tr>
				<td class="schedule">Skytreader, Loki</td>
				<td class="schedule"><input type="text" class="noborder" value="10" /></td>
				<td class="schedule"><input type="text" class="noborder" value="45" /></td>
				<td class="schedule"></td>
			</tr>
			<tr>
				<td class="schedule">Skywalker, Anakin</td>
				<td class="schedule"><input type="text" class="noborder" value="10" /></td>
				<td class="schedule"><input type="text" class="noborder" value="48" /></td>
				<td class="schedule"></td>
			</tr>
			</table>
			<br />
			<input type="button" value="Compute Grades" /> <input type="button" value="Generate Statistics" /> <input type="button" value="Export Record" onClick="showExport()" />
			<div id="iframearea" style="display: none; z-index: 1;">
				<iframe id="popup" name="popup" class="popupbox" src="export_record.php" frame="0">
				</iframe>
			</div>
		</div>
	</div>
	<div id="copywright"></div>
</body>
</html>